package com.cheng.zenofdesignpatterns.patterns.command.common;


/**
 * 具体命令类
 */
public class ConcreteCommand1 extends Command {

	//声明自己的默认接收者
	public ConcreteCommand1(){
		super(new ConcreteReciver1());
	}

	//设置新的接收者
	public ConcreteCommand1(Receiver _receiver){
		super(_receiver);
	}

	// 每个具体的命令都必须实现一个命令
	public void execute() {
		// 业务处理
		this.receiver.doSomething();
	}

}
